package com.atguign.gulimall.order.service;

import com.atguign.gulimall.order.vo.OrderConfirmVo;
import com.atguign.gulimall.order.vo.PayAsyncVo;
import com.atguign.gulimall.order.vo.SubmitOrderResponseVo;
import com.atguign.gulimall.order.vo.SubmitOrderVo;
import com.atguigu.common.to.mq.SeckillOrderTo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguign.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author liuxvru
 * @email liuxvru@163.com
 * @date 2024-01-13 20:15:51
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(SubmitOrderVo submitOrderVo);

    OrderEntity getOrderByOrderSn(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String hadlePayResult(PayAsyncVo vo);

    void createSeckillOrder(SeckillOrderTo seckillOrderTo);
}

